<%@page import="edu.uit.se.laps.web.model.TaiKhoan"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<!-- pageEncoding="UTF-8"%> -->
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ page
	import="edu.uit.se.laps.web.*,edu.uit.se.laps.web.controller.*, java.net.*,java.text.*,java.util.*"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>myLife - Đăng nhập</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script language="javascript" src="1.7.2.jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$('.formDN').css({'width':'400px', 'height':'250px', 'border':'2px solid #800000',
		'margin':'100px 0px'});
	/* var vitri = ($(window).width()/2 - $('.formDN').width()/2);
	$('.formDN').css({'position':'relative','left':vitri + 'px'}); */
	$('.header').css({'background':'red', 'height':'50px', 'color':'white',
		'font-size':'24px', 'font-weight':'bold', 'margin-bottom':'30px','line-height':'50px'});
	$('.baongoai').css({'width':'100%','height':'500px'});
	$('.dk1').css({'margin':'30px 0px'});
	$('.dk1 a').css({'text-decoration':'none'});
});
	
	
</script>
</head>
<body>
	<tiles:insertTemplate template="Template.jsp">
	<tiles:putAttribute name="focusbody">
	<%
		TaiKhoanSession tkSession = (TaiKhoanSession) session
				.getAttribute("TaiKhoanSession");
		if (tkSession == null) {
			tkSession = new TaiKhoanSession();
			session.setAttribute("TaiKhoanSession", tkSession);
		}
	%>
	<div class="baongoai" align="center">
		<div class="formDN" align="center">
			<div class="header">Đăng nhập</div>
			<div style="color: red">${message}</div>
			<s:form action="loginUser">
				<s:textfield name="taiKhoan.email" label="Email" />
				<s:password name="taiKhoan.password" label="Password" />
				<s:submit value="Đăng nhập"/>
			</s:form>
			<div class="dk1"><a href="dangki.jsp"> Tạo tài khoản mới</a></div>
		</div>
	</div>
	</tiles:putAttribute>
	
	</tiles:insertTemplate>
</body>
</html>